<?php if (!defined('HKCMS_VERSION')) exit(); ?>
{hkcms:admintemplate file="common/Head"}
<body class="J_scroll_fixed">
<div class="wrap">
    {hkcms:admintemplate file="common/Nav"}
    <div class="h_a">搜索</div>
    <div class="search_type  mb10">
        <form action="{:url('addons/message/index',['isadmin'=>1])}" method="post">
            <div class="mb10">
                <div class="mb10"> <span class="mr20"> 留言搜索：
          <input type="text" class="input length_2" name="keyword" style="width:200px;" value="{php}if(isset($keyword)){echo $keyword;}{/php}" placeholder="姓名/内容">
          <button class="btn">搜索</button>
          </span> </div>
            </div>
        </form>
    </div>
    <div class="table_list">
        <table width="100%">
            <thead>
            <tr>
                <td width="100">序号</td>
                <td width="100">姓名</td>
                <td width="100">手机</td>
                <td align="center">邮箱</td>
                <td align="center">内容</td>
                <td align="center">时间</td>
                <td align="center" width="227">操作</td>
            </tr>
            </thead>
            {volist name="data" id="vo"}
            <tr>
                <td>{$i}</td>
                <td>{$vo.name}</td>
                <td>{$vo.phone}</td>
                <td>{$vo.email}</td>
                <td align="center">{$vo.content}</td>
                <td align="center">{:date('Y-m-d H:i:s',$vo['create_at'])}</td>
                <td align="center">
                    <a  href="{:url('addons/message/delete', ['id'=>$vo['id'],'isadmin'=>1])}" class="btn btn_submit btn_big">删除</a>
                </td>
            </tr>
            {/volist}
        </table>
    </div>
    <div class="p10">
        <div class="pages">{$page|default=''}</div>
    </div>
</div>
<script src="{$config_siteurl}statics/js/common.js?v"></script>
</body>
</html>